#ifndef _CHANNELINFOPANEL_H_
#define _CHANNELINFOPANEL_H_

#include <interfacelib/window/loadcontrol.h>
#include <interfacelib/window/panel.h>

#include <interfacelib/window/editbox.h>

#include "Define/ChannelInfo.h"

#define			SCRIPT_CHANNEL_INFO					"ChannelInfo"
#define			SCRIPT_CHANNEL_INFO_NAME			"ChannelInfoName"
#define			SCRIPT_CHANNEL_INFO_CONTROL			"ChannelInfoControl"

class ChannelInfoPanel : public interfacelib::Window::Panel
{
public:
	ChannelInfoPanel();
	virtual ~ChannelInfoPanel();

	bool create( interfacelib::Window::LoadControl *loadControl , int index );

	void setChannelInfo( ChannelInfo *channelInfo );

	bool sendEnterChannelReq( char *password = NULL );

	virtual	void onLButtonUp( UINT flags, POINT point );
private:
	interfacelib::Window::EditBox *m_editChannelName;
	ChannelInfo *m_channelInfo;

};

#endif